home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 520 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.4 KB

  1. Date: Wed, 6 Oct 1993 11:26:19 +0100
  2. Message-Id: <199310061026.AA17006@sun.ph-cip.uni-koeln.de>
  3. To: mint@atari.archive.umich.edu
  4. From: hessdorf@ph-cip.uni-koeln.de (Joerg Hessdoerfer)
  5. Subject: bug in toswin/miniwin
  6.  
  7. Hi all!
  8. I guess I've stumbled over a bug in toswin (I'm using 1.6, but this bug is
  9. assumed to be in _EVERY_ version, as well as in miniwin which came with
  10. MTOS108, but presumably in every version of miniwin, too).
  11.  
  12. The bug is, simply put, that cursor positioning is incorrect. What that
  13. means is, that whenever an app tries to position the cursor with escape
  14. sequences onto a column >95, the cursor moves to the first column.
  15. I use a toswin window of 120*48, and I stumbled into this trap when running
  16. EMACS. (Well, I double-checked TERMCAP, LINES, and COLUMNS for that one!).
  17.  
  18. My guess is, that the author (Hi, Eric!) uses 'char' for the input byte
  19. stream. When a 'gotoxy' escape sequence occurs, 0x20 gets added to the x
  20. and y values.
  21. Well, 95 + 0x20(=32) makes 127. Any column larger would mean a negative value!
  22. So, to fix this, one simply would have to change 'char' to 'unsigned char'.
  23.  
  24. But what do you do with >223 columns ??? ;-)=) 
  25.  
  26. C'ya, Joe
  27.  
  28.     email: hessdorf@sun.ph-cip.uni-koeln.de
  29.                
  30.     snail mail:
  31.        Joerg Hessdoerfer  | Remember: warranty void if seal is broken!
  32.        Niehler Str. 332   | (broken seal)
  33.        BRD 50735 Koeln
  34.                
  35.     Telephone: (Germany) 0221/714178 (home) or 02203/6013335 (office)
  36.  
  37.